/*  1:   */package com.github.binarywang.demo.wechat.service.impl;
/*  2:   */
/*  3:   */import com.github.binarywang.demo.wechat.dao.TypeMapper;
/*  4:   */import com.github.binarywang.demo.wechat.model.Type;
/*  5:   */import com.github.binarywang.demo.wechat.service.WxTypeService;
/*  6:   */import java.util.List;
/*  7:   */import org.springframework.beans.factory.annotation.Autowired;
/*  8:   */import org.springframework.stereotype.Service;
/*  9:   */
/* 10:   */@Service("wxTypeService")
/* 11:   */public class WxTypeServiceImpl
/* 12:   */  implements WxTypeService
/* 13:   */{
/* 14:   */  @Autowired
/* 15:   */  private TypeMapper typeMapper;
/* 16:   */  
/* 17:   */  public List<Type> list()
/* 18:   */  {
/* 19:19 */    return this.typeMapper.selectAll();
/* 20:   */  }
/* 21:   */  
/* 22:   */  public Type findById(Integer typeId) {
/* 23:23 */    return this.typeMapper.selectByPrimaryKey(typeId);
/* 24:   */  }
/* 25:   */  
/* 26:   */  public int delete(Integer id) {
/* 27:27 */    return this.typeMapper.deleteByPrimaryKey(id);
/* 28:   */  }
/* 29:   */  
/* 30:   */  public int edit(Type type) {
/* 31:31 */    return this.typeMapper.updateByPrimaryKeySelective(type);
/* 32:   */  }
/* 33:   */  
/* 34:   */  public int insert(Type type) {
/* 35:35 */    return this.typeMapper.insert(type);
/* 36:   */  }
/* 37:   */}


/* Location:           C:\Users\Windows\Desktop\wx\BOOT-INF\classes\
 * Qualified Name:     com.github.binarywang.demo.wechat.service.impl.WxTypeServiceImpl
 * JD-Core Version:    0.7.0-SNAPSHOT-20130630
 */